package com.jinhua.batch.model;



import com.alibaba.excel.annotation.ExcelProperty;

import java.util.Objects;

/**
 * Copyright
 *
 * @Author WuHuang
 * @Date 2023/3/31
 */
public class ExportResultDTO {
    @ExcelProperty(
            value = {"key"},
            index = 0
    )
    private String key;

    public ExportResultDTO() {
    }

    public String getKey() {
        return this.key;
    }

    public void setKey(final String key) {
        this.key = key;
    }


    protected boolean canEqual(final Object other) {
        return other instanceof ExportResultDTO;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ExportResultDTO that = (ExportResultDTO) o;
        return Objects.equals(key, that.key);
    }

    @Override
    public int hashCode() {
        return Objects.hash(key);
    }

    public String toString() {
        return "ExportResultDTO(key=" + this.getKey() + ")";
    }
}
